//
//  UIImage+MetaData.m
//  ZYWebImage
//
//  Created by wangzhipan on 2025/3/18.
//

#import "UIImage+MetaData.h"
#import <objc/runtime.h>

static const char metaData;

@implementation UIImage (MetaData)
- (NSData *)zy_metaData
{
    return objc_getAssociatedObject(self, &metaData);
}

- (void)setZy_metaData:(NSData *)data
{
    objc_setAssociatedObject(self, &metaData, data, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}
@end
